package com.devunion.reader.client.panel;

import com.extjs.gxt.ui.client.Style;
import com.extjs.gxt.ui.client.widget.TabItem;
import com.extjs.gxt.ui.client.widget.TabPanel;
import com.extjs.gxt.ui.client.widget.layout.FitLayout;

/**
 * @author Timoshenko Alexander 19.08.2009 : 18:06:59
 */
public class AdvancedEastPanel extends TabPanel {
    ProjectInfoPanel projectInfoPanel = new ProjectInfoPanel();
    
    public AdvancedEastPanel() {
        setTabPosition(TabPosition.BOTTOM);


        projectInfoPanel.initialize();
        final TabItem projectTabItem = new TabItem("Info");
        projectTabItem.setLayout(new FitLayout());
        projectTabItem.add(projectInfoPanel);
        projectTabItem.setScrollMode(Style.Scroll.AUTOY);
        add(projectTabItem);
    }

    public ProjectInfoPanel getProjectInfoPanel() {
        return projectInfoPanel;
    }
}
